//
//  YXSettingCellModel.m
//  MockProject
//
//  Created by FanYu on 25/8/2016.
//  Copyright © 2016 niuzhaowang. All rights reserved.
//

#import "YXSettingCellModel.h"

@implementation YXSettingCellModel

+ (YXSettingCellModel *)configWithTitle:(NSString *)title icon:(NSString *)img number:(NSString *)num isOn:(BOOL) onOff {
    YXSettingCellModel *model = [[YXSettingCellModel alloc] init];
    
    model.title = title;
    model.iconImage = [img isEqualToString:@""] ? nil : [UIImage imageNamed:img];
    model.number = num;
    model.isOn = onOff;
    
    return model;
}

@end
